package edu.pitt.myptm;

public class DataItem {
	int id;
	public static final int clientLength = 18;
	public static final int phoneLength = 12;
	/*char[] clientName = new char[clientLength];
	char[] phone = new char[phoneLength];
	*/
	byte[] clientName = new byte[clientLength];
	byte[] phone = new byte[phoneLength];
	
	/*String clientName;
	String phone;*/
	public String toString() {
		return id + "," + new String(clientName)+ "," + new String(phone);
	}
	
	public static int getItemSize() {
		return clientLength+ phoneLength + 4;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public byte[] getClientName() {
		return clientName;
	}

	public void setClientName(byte[] clientName) {
		this.clientName = clientName;
	}

	public byte[] getPhone() {
		return phone;
	}

	public void setPhone(byte[] phone) {
		this.phone = phone;
	}

	public static int getClientlength() {
		return clientLength;
	}

	public static int getPhonelength() {
		return phoneLength;
	}
	
	
}
